<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"  %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>关键词管理</title>
	<style type="text/css">
		.keyWord .layui-input,input[name=key]{
			width:200px;
			height:30px;
			display: inline-block;
		}
	</style>	
</head>
<body>
	<div class="layui-form-item">
    		<label class="layui-form-label">关键词：</label>
    		<div class="layui-input-block">
    				
      			<input onchange="" type="text" name="key"  class="layui-input">
   			 	<input type="button" name=searchBtn value="搜索">
   			 </div>
  	</div>
  	<table border="1" cellspacing="0">
  		<thead>
  			<tr >
  				<td>序号</td>
	  			<td>关键词</td>
	  			<td>客户名称</td>
	  			<td>代理商</td>
	  			<td>申请年限</td>
	  			<td>申请日期</td>
	  			<td>到期日期</td>
	  			<td>申请到期状态</td>
	  			<td>审核状态</td>
	  			<td>使用状态</td>
	  			<td>app开通状态</td>
	  			<td>操作</td>
  			</tr>
  		</thead>
  		<tbody>
  			<tr>
  				<td></td>
  			</tr>
			
  		</tbody>
  	</table>
  	<div style="margin-left: 250px">
  		<a href="javascript:;" id="firstPage">首页</a>|
		<a href="javascript:;" id="prevPage">《上一页</a>|
		<a href="javascript:;" id="nextPage">下一页》</a>|
		<a href="javascript:;" id="lastPage">尾页</a>
  	</div>
</body>

<script type="text/javascript">

$(document).ready(function(){

	var word = $("input[name=key]").val();
	
	$.ajax({
		url:"${ctx}/keyWord/kwSearch?keyWord="+word,
		type:"get",
		success:function(data){
			if(data !=null){	
					
			}
		}
	})  

})
	$("input[name=searchBtn]").click(function(){
		
		var word = $("input[name=key]").val();
		
		$.ajax({
			url:"${ctx}/keyWord/kwSearch?keyWord="+word,
			type:"get",
			success:function(data){
				if(data !=null){	
						
				}
			}
		})
	})
</script>
</html>
























